home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / ucturbo2 / testdx.c < prev    next >
Text File  |  1987-05-17  |  2KB  |  84 lines

  1. main()
  2. {
  3.    lprintf("The following is a test of the Unicorn #1 Library with a\n");
  4.    lprintf("daisy wheel printer.  The library was designed using an\n");
  5.    lprintf("Epson DX-10 printer.  This printer is designed to be\n");
  6.    lprintf("Diablo 630 compatible therefore the commands in the\n");
  7.    lprintf("library should be applicable to many Daisy wheels.\n\n\n");
  8.  
  9.    lputch('A');
  10.    lputch('B');
  11.    lputch('C');
  12.    lputch('D');
  13.    lputch('E');
  14.    lputch('F');
  15.    lputch('G');
  16.    lputch('H');
  17.    lputch('I');
  18.  
  19.    dxlf();
  20.  
  21.    lputch('a');
  22.    lputch('b');
  23.    lputch('c');
  24.    lputch('d');
  25.    lputch('e');
  26.    lputch('f');
  27.    lputch('g');
  28.    lputch('h');
  29.    lputch('i');
  30.  
  31.    dxrlf();
  32.  
  33.    lputch('A');
  34.    lputch('B');
  35.    lputch('C');
  36.    lputch('D');
  37.    lputch('E');
  38.    lputch('F');
  39.    lputch('G');
  40.    lputch('H');
  41.    lputch('I');
  42.  
  43.    dxcr();
  44.    dxlf();
  45.    dxcr();
  46.    dxlf();
  47.    dxcr();
  48.    dxlf();
  49.    dxcr();
  50.    dxlf();
  51.  
  52.    lprintf("\nNotice that in the above a LF was sent to the printer. This\n");
  53.    lprintf("did advance the paper one line but did NOT do a carriage return.\n");
  54.    lprintf("The reverse line feed performed in a similar manner.");
  55.  
  56.    lprintf("\n\nNow lets do some ");
  57.    dxhlf();
  58.    lprintf("sub");
  59.    dxrhlf();
  60.    lprintf(" and ");
  61.    dxrhlf();
  62.    lprintf("super");
  63.    dxhlf();
  64.    lprintf("Scripting with the printer.\n\n");
  65.    dxshast();
  66.    lprintf("Now we will do shadow printing\n");
  67.    lprintf("Now let's ");
  68.    dxundlst();
  69.    lprintf("underline");
  70.    dxundend();
  71.    lprintf(" a bit of print\n");
  72.    dxboldst();
  73.    lprintf("This line is printed using bold print\n");
  74.    dxbsend();
  75.    dxchwide(15);
  76.    lprintf("\nNow let's use 8 pitch print\n");
  77.    dxchwide(12);
  78.    lprintf("\nNow let's use 10 pitch print\n");
  79.    dxchwide(10);
  80.    lprintf("\nNow let's use 12 pitch print\n");
  81.    lprintf("\n\n\nThis is the end of the daisy wheel print test\n");
  82.    dxff();
  83. }
  84.